package com.class5.springboot.entity;

import com.class5.springboot.frame.repo.entity.SuperEntity;
import java.io.Serializable;
import java.sql.Timestamp;

/**
 * tb_asset_type 固定资产类别表 
 **/
@SuppressWarnings("serial")
public class TbAssetType extends SuperEntity implements Serializable {

    /**主键(id)*/
    private Long id;

    /**资产类别名称(name)*/
    private String name;

    /**创建时间(create_time)*/
    private Timestamp createTime;

    /**更新时间(modify_time)*/
    private Timestamp modifyTime;

    public TbAssetType() {
    }

    public TbAssetType(Long id, Timestamp createTime) {
        this.id = id;
        this.createTime = createTime;
    }

    public Long getId() {
        return id;
    }

    public TbAssetType setId(Long id) {
        addOriginalData("id", this.id, id);
        this.id = id;
        return this;
    }

    public String getName() {
        return name;
    }

    public TbAssetType setName(String name) {
        addOriginalData("name", this.name, name);
        this.name = name;
        return this;
    }

    public Timestamp getCreateTime() {
        return createTime;
    }

    public TbAssetType setCreateTime(Timestamp createTime) {
        addOriginalData("create_time", this.createTime, createTime);
        this.createTime = createTime;
        return this;
    }

    public Timestamp getModifyTime() {
        return modifyTime;
    }

    public TbAssetType setModifyTime(Timestamp modifyTime) {
        addOriginalData("modify_time", this.modifyTime, modifyTime);
        this.modifyTime = modifyTime;
        return this;
    }

    @Override()
    public String toString() {
        return this.getClass().getName() + ":{id:" + id + ",name:" + name + ",createTime:" + createTime + ",modifyTime:" + modifyTime + "}";
    }

    @Override()
    public boolean equals(Object arg0) {
        return ((TbAssetType) arg0).getId().equals(id);
    }

    @Override()
    public int hashCode() {
        return id == null ? 0 : id.hashCode();
    }
}
